package Frame.screen;

import FCRendering.FCRConstants;
import FCRendering.FCRMaster;
import FCRendering.ImageUtil;

import java.awt.*;
import java.awt.event.KeyEvent;

import static FCRendering.FCRMaster.fcv;
import static FCRendering.FCRMaster.langLib;

public class DefaultHelpToolScreen extends IScreen{
    Font font1;
    @Override
    public void dispatchPaintComponent(Graphics g, FCRMaster fcrMaster) {
        if(fcrMaster.fcv.isShowHelpUI()){
            g.drawImage(ImageUtil.getImage("gamehelp"), (int) (fcv.getProportion() * 373), (int) (fcv.getProportion() * 202.5),
                    (int) (1174 * fcv.getProportion()), (int) (675 * fcv.getProportion()), this);// 菜单
        }
        g.setFont(font1);
        g.setColor(Color.white);
        g.drawString(langLib.getNameOfId(FCRMaster.player1.getMapname())+": "+
                FCRMaster.player1.getPlayer1x()+"*"+FCRMaster.player1.getPlayer1y(), 10, (int) (100 * fcv.getProportion()));
    }

    @Override
    public void setBounds() {
        font1 = new Font(FCRConstants.FONT_BLACK, 0, (int) (24 * fcv.getProportion()));
    }


}
